package cn.itcast.Proxy;

/**
 * @Author : 叶荻风
 * @create : 2024/8/6 19:23
 */
public class SmsServiceProxy implements SmsService{
    private final SmsService smsService;

    public SmsServiceProxy(SmsService smsService) {
        this.smsService = smsService;
    }

    @Override
    public String send(String message) {
        System.out.println("log head");
        String send = smsService.send(message);
        System.out.println("log end");
        return send;
    }
}
